package com.vshop.platform.system.api.impl;

import com.vshop.auth.api.ApiClientService;
import com.vshop.auth.api.domain.vo.ApiClientVo;
import com.vshop.framework.core.util.MapstructUtil;
import com.vshop.platform.system.crud.dao.SysClientDao;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@RequiredArgsConstructor
@Slf4j
@Service
public class ApiClientServiceImpl implements ApiClientService {

    private final SysClientDao sysClientDao;

    @Override
    public ApiClientVo getByClientId(String clientId) {
        return MapstructUtil.convert(sysClientDao.getByClientId(clientId), ApiClientVo.class);
    }
}
